package com.bwie.mapper;

import com.bwie.common.domain.Home;
import com.bwie.common.domain.Organization;
import com.bwie.common.domain.request.OrganizationListReq;
import com.bwie.common.domain.response.OrganizationListResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: OrganizationMapper
 * @Description: TODO
 * @version: v1.８.0
 * @author: 李明
 * @date: 2025/10/22 11:05
 */
@Mapper
public interface OrganizationMapper {
//    List<Home> homeList(@Param("userId") Integer userId);

    /**
     * 分页组织查询
     *
     * @param organizationListReq
     * @return
     */
    List<OrganizationListResp> organizationList(OrganizationListReq organizationListReq);


    Integer getCountByName(@Param("organizationName") String organizationName);

    void addOrganization(Organization organization);
}
